package thread.simpletest;

/**
 * @author liweimin
 * @date 2021/4/26 10:19
 * @since
 */
public class SimpleTimer {
    public static void main(String[] args) {
        int remaining = 60;
        if (args.length > 0) {
            remaining = Integer.parseInt(args[0]);
        }
        while (true) {
            System.out.println("Remaining :" + remaining);
            remaining--;
            if (remaining < 0) {
                break;
            }
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }

    }
}
